import { v4 as uuidv4 } from 'uuid'
//封装uuid函数
function getUuid(){
    const uuid = localStorage.getItem('uuid')
    if(uuid){
        return uuid
    }else{
      const result=uuidv4()
      localStorage.setItem('uuid',result)
      return result
    }
}
export default getUuid